﻿
using Cheng;
using GameFramework.Event;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;

public class PlayerManagrs : MonoSingleton<PlayerManagrs>
{
    private CharacterController2D characterController;

    protected override void OnInit()
    {
        base.OnInit();
        characterController = GetComponent<CharacterController2D>();
    }

    protected override void Update()
    {
        base.Update();
        float _horizontal = Input.GetAxis("Horizontal");
        float _vertical = Input.GetAxis("Vertical");
        characterController.Move(new Vector3(_horizontal, _vertical)*0.1f);
    }

   
}
